import config from "@/config"
import http from "@/utils/request";

export default {
	recentlyHourFlow: {
		url: `${config.API_URL}/statGate/recently/hour`,
		name: "获取最近几个小时的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyHourFlowList: {
		url: `${config.API_URL}/statGate/recently/hour/list`,
		name: "获取最近几个小时的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyDayFlow: {
		url: `${config.API_URL}/statGate/recently/day`,
		name: "获取最近几天的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyDayFlowList: {
		url: `${config.API_URL}/statGate/recently/day/list`,
		name: "获取最近几天的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},

	recentlyWeekFlow: {
		url: `${config.API_URL}/statGate/recently/week`,
		name: "获取最近几周的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyWeekFlowList: {
		url: `${config.API_URL}/statGate/recently/week/list`,
		name: "获取最近几周的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyMonthFlow: {
		url: `${config.API_URL}/statGate/recently/month`,
		name: "获取最近几个月的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyMonthFlowList: {
		url: `${config.API_URL}/statGate/recently/month/list`,
		name: "获取最近几个月的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyYearFlow: {
		url: `${config.API_URL}/statGate/recently/year`,
		name: "获取最近几年的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
	recentlyYearFlowList: {
		url: `${config.API_URL}/statGate/recently/year/list`,
		name: "获取最近几年的出入口流量信息",
		get: async function (params = {}) {
			return await http.get(this.url, params);
		}
	},
}
